<div class="weekday-plan">
{% if plan %}
    <h3>Plan of {{ weekday_description }}</h3>
    <table cellspacing="0" class="table table-striped table-bordered row-fluid">
        <thead>
            <tr>
                <th class="span1">#</th>
                <th class="span4">Item</th>
                <th class="span2">Price</th>
                <th class="span2">Limit</th>
                <th class="span2">Stock</th>
            </tr>
        </thead>
        <tbody>
            {% for entry in plan.entries.all %}
            <tr>
                <td>{{ forloop.counter }}</td>
                <td>{{ entry.item.name }}</td>
                <td>{{ entry.price }}</td>
                <td>{{ entry.limit }}</td>
                <td>{{ entry.stock  }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
{% else %}
    <h3>No plan for {{ weekday_description }}</h3>
{% endif %}
</div>
